﻿<%@ Page Language="C#" MasterPageFile="~/Layout.Master" AutoEventWireup="true" CodeBehind="removeReservation.aspx.cs" Inherits="PT.pages.removeReservation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="cpContent" ContentPlaceHolderID="cpContent" runat="server">
  
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConflictDetection="CompareAllValues" 
        ConnectionString="<%$ ConnectionStrings:HotelConnectionString1 %>" 
        DeleteCommand="DELETE FROM [Reservation] WHERE [id] = @reservation_id" 
        OldValuesParameterFormatString="original_{0}" 
        SelectCommand="SELECT [id] FROM [Reservation] WHERE id= @reservation_id">
        <SelectParameters>
            <asp:QueryStringParameter Name="reservation_id" QueryStringField="id" />
        </SelectParameters>
        <DeleteParameters>
            <asp:QueryStringParameter Name="reservation_id" QueryStringField="id" Type="Int32" />
        </DeleteParameters>
    </asp:SqlDataSource>
  
</asp:Content>